import java.util.Scanner;

public class ChaiFen {
    public static void main(String[] args){
        Scanner cf = new Scanner(System.in);
        System.out.println("请输入一个三位数");
        int num = cf.nextInt();
        int a = num/100;
        int b = (num-(a*100))/10;
        int c = (num-(a*100)-(b*10));
        System.out.println("整数"+num+"百位为："+a);
        System.out.println("整数"+num+"十位为："+b);
        System.out.println("整数"+num+"个位为："+c);
    }
}
